import request from '@/utils/request'

// 获取电话记录列表
export function listCallLog(query) {
  return request({
    url: '/customer/telephone/record/list',
    method: 'get',
    params: query
  })
}
// 获取电话记录列表
export function listStatistics(query) {
  return request({
    url: '/customer/telephone/record/statistics',
    method: 'get',
    params: query
  })
}
//删除电话记录
export function delCallLog(ids) {
  return request({
    url: '/customer/telephone/record/delete/' + ids,
    method: 'post'
  })
}
// 保存电话记录
export function setCallLog(data) {
  return request({
    url: '/customer/telephone/record/save',
    method: 'post',
    data
  })
}
// 转入知识库
export function transferToKnowledge(data) {
  return request({
    url: '/customer/telephone/record/transfer/to/knowledge',
    method: 'post',
    data
  })
}
// 分配电话记录
export function apportionCallLog(data) {
  return request({
    url: '/customer/telephone/record/apportion/record',
    method: 'post',
    data
  })
}
// 数据导入
export function importCallLog(data) {
  return request({
    url: '/customer/telephone/record/import',
    method: 'post',
    data
  })
}
//通过id获取详情
export function getCallLogDetail(id) {
  return request({
    url: '/customer/telephone/record/get/' + id,
    method: 'get'
  })
}
